﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CheckSort
{
    class CreateArray
    {
        public static void CreateRamdomArray(uint lenght, int[] arr)
        {
            Random R = new Random(int.MaxValue);

            for (uint i = 0; i < lenght; i++)
            {
                uint randomNumber = (uint)R.Next(1, 60);
                arr[i] = (int)randomNumber;
            }
        }
        public static void CreateSortedArray(uint lenght, int[] arr)
        {
            for (uint i = 0; i < lenght; i++)
            {
                arr[i] = (int)i;
            }
        }
        public static void CreateDescSortedArray(uint lenght, int[] arr)
        {
            for (uint i = lenght - 1; i > 0; i--)
            {
                arr[i] = (int)i;
            }
        }
    }
}
